package ai.people.core.grpc.lib.es;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.42.0)",
    comments = "Source: es/message-search.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class BaseSearchServiceGrpc {

  private BaseSearchServiceGrpc() {}

  public static final String SERVICE_NAME = "es.BaseSearchService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.SearchRequest,
      ai.people.core.grpc.lib.es.SearchPageResponse> getBaseSearchMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "baseSearch",
      requestType = ai.people.core.grpc.lib.es.SearchRequest.class,
      responseType = ai.people.core.grpc.lib.es.SearchPageResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.SearchRequest,
      ai.people.core.grpc.lib.es.SearchPageResponse> getBaseSearchMethod() {
    io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.SearchRequest, ai.people.core.grpc.lib.es.SearchPageResponse> getBaseSearchMethod;
    if ((getBaseSearchMethod = BaseSearchServiceGrpc.getBaseSearchMethod) == null) {
      synchronized (BaseSearchServiceGrpc.class) {
        if ((getBaseSearchMethod = BaseSearchServiceGrpc.getBaseSearchMethod) == null) {
          BaseSearchServiceGrpc.getBaseSearchMethod = getBaseSearchMethod =
              io.grpc.MethodDescriptor.<ai.people.core.grpc.lib.es.SearchRequest, ai.people.core.grpc.lib.es.SearchPageResponse>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "baseSearch"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.es.SearchRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.es.SearchPageResponse.getDefaultInstance()))
              .setSchemaDescriptor(new BaseSearchServiceMethodDescriptorSupplier("baseSearch"))
              .build();
        }
      }
    }
    return getBaseSearchMethod;
  }

  private static volatile io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.SearchDetailGrpcRequest,
      ai.people.core.grpc.lib.es.SearchDetailGrpcResponse> getSearchDetailMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "searchDetail",
      requestType = ai.people.core.grpc.lib.es.SearchDetailGrpcRequest.class,
      responseType = ai.people.core.grpc.lib.es.SearchDetailGrpcResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.SearchDetailGrpcRequest,
      ai.people.core.grpc.lib.es.SearchDetailGrpcResponse> getSearchDetailMethod() {
    io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.SearchDetailGrpcRequest, ai.people.core.grpc.lib.es.SearchDetailGrpcResponse> getSearchDetailMethod;
    if ((getSearchDetailMethod = BaseSearchServiceGrpc.getSearchDetailMethod) == null) {
      synchronized (BaseSearchServiceGrpc.class) {
        if ((getSearchDetailMethod = BaseSearchServiceGrpc.getSearchDetailMethod) == null) {
          BaseSearchServiceGrpc.getSearchDetailMethod = getSearchDetailMethod =
              io.grpc.MethodDescriptor.<ai.people.core.grpc.lib.es.SearchDetailGrpcRequest, ai.people.core.grpc.lib.es.SearchDetailGrpcResponse>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "searchDetail"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.es.SearchDetailGrpcRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.es.SearchDetailGrpcResponse.getDefaultInstance()))
              .setSchemaDescriptor(new BaseSearchServiceMethodDescriptorSupplier("searchDetail"))
              .build();
        }
      }
    }
    return getSearchDetailMethod;
  }

  private static volatile io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.BatchSearchGrpcRequest,
      ai.people.core.grpc.lib.es.BatchSearchGrpcResponse> getBatchSearchMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "batchSearch",
      requestType = ai.people.core.grpc.lib.es.BatchSearchGrpcRequest.class,
      responseType = ai.people.core.grpc.lib.es.BatchSearchGrpcResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.BatchSearchGrpcRequest,
      ai.people.core.grpc.lib.es.BatchSearchGrpcResponse> getBatchSearchMethod() {
    io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.BatchSearchGrpcRequest, ai.people.core.grpc.lib.es.BatchSearchGrpcResponse> getBatchSearchMethod;
    if ((getBatchSearchMethod = BaseSearchServiceGrpc.getBatchSearchMethod) == null) {
      synchronized (BaseSearchServiceGrpc.class) {
        if ((getBatchSearchMethod = BaseSearchServiceGrpc.getBatchSearchMethod) == null) {
          BaseSearchServiceGrpc.getBatchSearchMethod = getBatchSearchMethod =
              io.grpc.MethodDescriptor.<ai.people.core.grpc.lib.es.BatchSearchGrpcRequest, ai.people.core.grpc.lib.es.BatchSearchGrpcResponse>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "batchSearch"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.es.BatchSearchGrpcRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.es.BatchSearchGrpcResponse.getDefaultInstance()))
              .setSchemaDescriptor(new BaseSearchServiceMethodDescriptorSupplier("batchSearch"))
              .build();
        }
      }
    }
    return getBatchSearchMethod;
  }

  private static volatile io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest,
      ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse> getQueryAccountWarningSpeechMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "queryAccountWarningSpeech",
      requestType = ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest.class,
      responseType = ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest,
      ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse> getQueryAccountWarningSpeechMethod() {
    io.grpc.MethodDescriptor<ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest, ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse> getQueryAccountWarningSpeechMethod;
    if ((getQueryAccountWarningSpeechMethod = BaseSearchServiceGrpc.getQueryAccountWarningSpeechMethod) == null) {
      synchronized (BaseSearchServiceGrpc.class) {
        if ((getQueryAccountWarningSpeechMethod = BaseSearchServiceGrpc.getQueryAccountWarningSpeechMethod) == null) {
          BaseSearchServiceGrpc.getQueryAccountWarningSpeechMethod = getQueryAccountWarningSpeechMethod =
              io.grpc.MethodDescriptor.<ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest, ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "queryAccountWarningSpeech"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse.getDefaultInstance()))
              .setSchemaDescriptor(new BaseSearchServiceMethodDescriptorSupplier("queryAccountWarningSpeech"))
              .build();
        }
      }
    }
    return getQueryAccountWarningSpeechMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static BaseSearchServiceStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<BaseSearchServiceStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<BaseSearchServiceStub>() {
        @java.lang.Override
        public BaseSearchServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new BaseSearchServiceStub(channel, callOptions);
        }
      };
    return BaseSearchServiceStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static BaseSearchServiceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<BaseSearchServiceBlockingStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<BaseSearchServiceBlockingStub>() {
        @java.lang.Override
        public BaseSearchServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new BaseSearchServiceBlockingStub(channel, callOptions);
        }
      };
    return BaseSearchServiceBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static BaseSearchServiceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<BaseSearchServiceFutureStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<BaseSearchServiceFutureStub>() {
        @java.lang.Override
        public BaseSearchServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new BaseSearchServiceFutureStub(channel, callOptions);
        }
      };
    return BaseSearchServiceFutureStub.newStub(factory, channel);
  }

  /**
   */
  public static abstract class BaseSearchServiceImplBase implements io.grpc.BindableService {

    /**
     */
    public void baseSearch(ai.people.core.grpc.lib.es.SearchRequest request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.SearchPageResponse> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBaseSearchMethod(), responseObserver);
    }

    /**
     */
    public void searchDetail(ai.people.core.grpc.lib.es.SearchDetailGrpcRequest request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.SearchDetailGrpcResponse> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchDetailMethod(), responseObserver);
    }

    /**
     */
    public void batchSearch(ai.people.core.grpc.lib.es.BatchSearchGrpcRequest request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.BatchSearchGrpcResponse> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchSearchMethod(), responseObserver);
    }

    /**
     * <pre>
     * 查询账号发布的预警信息
     * </pre>
     */
    public void queryAccountWarningSpeech(ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryAccountWarningSpeechMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getBaseSearchMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                ai.people.core.grpc.lib.es.SearchRequest,
                ai.people.core.grpc.lib.es.SearchPageResponse>(
                  this, METHODID_BASE_SEARCH)))
          .addMethod(
            getSearchDetailMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                ai.people.core.grpc.lib.es.SearchDetailGrpcRequest,
                ai.people.core.grpc.lib.es.SearchDetailGrpcResponse>(
                  this, METHODID_SEARCH_DETAIL)))
          .addMethod(
            getBatchSearchMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                ai.people.core.grpc.lib.es.BatchSearchGrpcRequest,
                ai.people.core.grpc.lib.es.BatchSearchGrpcResponse>(
                  this, METHODID_BATCH_SEARCH)))
          .addMethod(
            getQueryAccountWarningSpeechMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest,
                ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse>(
                  this, METHODID_QUERY_ACCOUNT_WARNING_SPEECH)))
          .build();
    }
  }

  /**
   */
  public static final class BaseSearchServiceStub extends io.grpc.stub.AbstractAsyncStub<BaseSearchServiceStub> {
    private BaseSearchServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected BaseSearchServiceStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new BaseSearchServiceStub(channel, callOptions);
    }

    /**
     */
    public void baseSearch(ai.people.core.grpc.lib.es.SearchRequest request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.SearchPageResponse> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getBaseSearchMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void searchDetail(ai.people.core.grpc.lib.es.SearchDetailGrpcRequest request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.SearchDetailGrpcResponse> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getSearchDetailMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void batchSearch(ai.people.core.grpc.lib.es.BatchSearchGrpcRequest request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.BatchSearchGrpcResponse> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getBatchSearchMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     * <pre>
     * 查询账号发布的预警信息
     * </pre>
     */
    public void queryAccountWarningSpeech(ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getQueryAccountWarningSpeechMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   */
  public static final class BaseSearchServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<BaseSearchServiceBlockingStub> {
    private BaseSearchServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected BaseSearchServiceBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new BaseSearchServiceBlockingStub(channel, callOptions);
    }

    /**
     */
    public ai.people.core.grpc.lib.es.SearchPageResponse baseSearch(ai.people.core.grpc.lib.es.SearchRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getBaseSearchMethod(), getCallOptions(), request);
    }

    /**
     */
    public ai.people.core.grpc.lib.es.SearchDetailGrpcResponse searchDetail(ai.people.core.grpc.lib.es.SearchDetailGrpcRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getSearchDetailMethod(), getCallOptions(), request);
    }

    /**
     */
    public ai.people.core.grpc.lib.es.BatchSearchGrpcResponse batchSearch(ai.people.core.grpc.lib.es.BatchSearchGrpcRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getBatchSearchMethod(), getCallOptions(), request);
    }

    /**
     * <pre>
     * 查询账号发布的预警信息
     * </pre>
     */
    public ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse queryAccountWarningSpeech(ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getQueryAccountWarningSpeechMethod(), getCallOptions(), request);
    }
  }

  /**
   */
  public static final class BaseSearchServiceFutureStub extends io.grpc.stub.AbstractFutureStub<BaseSearchServiceFutureStub> {
    private BaseSearchServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected BaseSearchServiceFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new BaseSearchServiceFutureStub(channel, callOptions);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<ai.people.core.grpc.lib.es.SearchPageResponse> baseSearch(
        ai.people.core.grpc.lib.es.SearchRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getBaseSearchMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<ai.people.core.grpc.lib.es.SearchDetailGrpcResponse> searchDetail(
        ai.people.core.grpc.lib.es.SearchDetailGrpcRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getSearchDetailMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<ai.people.core.grpc.lib.es.BatchSearchGrpcResponse> batchSearch(
        ai.people.core.grpc.lib.es.BatchSearchGrpcRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getBatchSearchMethod(), getCallOptions()), request);
    }

    /**
     * <pre>
     * 查询账号发布的预警信息
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse> queryAccountWarningSpeech(
        ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getQueryAccountWarningSpeechMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_BASE_SEARCH = 0;
  private static final int METHODID_SEARCH_DETAIL = 1;
  private static final int METHODID_BATCH_SEARCH = 2;
  private static final int METHODID_QUERY_ACCOUNT_WARNING_SPEECH = 3;

  private static final class MethodHandlers<Req, Resp> implements
      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
    private final BaseSearchServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(BaseSearchServiceImplBase serviceImpl, int methodId) {
      this.serviceImpl = serviceImpl;
      this.methodId = methodId;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_BASE_SEARCH:
          serviceImpl.baseSearch((ai.people.core.grpc.lib.es.SearchRequest) request,
              (io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.SearchPageResponse>) responseObserver);
          break;
        case METHODID_SEARCH_DETAIL:
          serviceImpl.searchDetail((ai.people.core.grpc.lib.es.SearchDetailGrpcRequest) request,
              (io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.SearchDetailGrpcResponse>) responseObserver);
          break;
        case METHODID_BATCH_SEARCH:
          serviceImpl.batchSearch((ai.people.core.grpc.lib.es.BatchSearchGrpcRequest) request,
              (io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.BatchSearchGrpcResponse>) responseObserver);
          break;
        case METHODID_QUERY_ACCOUNT_WARNING_SPEECH:
          serviceImpl.queryAccountWarningSpeech((ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcRequest) request,
              (io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.es.AccountWarningSpeechGrpcResponse>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public io.grpc.stub.StreamObserver<Req> invoke(
        io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        default:
          throw new AssertionError();
      }
    }
  }

  private static abstract class BaseSearchServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    BaseSearchServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return ai.people.core.grpc.lib.es.MessageSearch.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("BaseSearchService");
    }
  }

  private static final class BaseSearchServiceFileDescriptorSupplier
      extends BaseSearchServiceBaseDescriptorSupplier {
    BaseSearchServiceFileDescriptorSupplier() {}
  }

  private static final class BaseSearchServiceMethodDescriptorSupplier
      extends BaseSearchServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    BaseSearchServiceMethodDescriptorSupplier(String methodName) {
      this.methodName = methodName;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
      return getServiceDescriptor().findMethodByName(methodName);
    }
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (BaseSearchServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new BaseSearchServiceFileDescriptorSupplier())
              .addMethod(getBaseSearchMethod())
              .addMethod(getSearchDetailMethod())
              .addMethod(getBatchSearchMethod())
              .addMethod(getQueryAccountWarningSpeechMethod())
              .build();
        }
      }
    }
    return result;
  }
}
